part_efi: dcache: allocate cacheline aligned buffers
authorAnton staaf <[email protected]>
Wed, 12 Oct 2011 13:56:04 +0000 (13:56 +0000)
committerWolfgang Denk <[email protected]>
Tue, 25 Oct 2011 07:26:34 +0000 (09:26 +0200)
commitf75dd584cdfe29dfdcfd424bb237b9238cfb8fe4
tree64c18b237725fde2849ccf12c3b96e2a4d815a12
parenta1969923c90c64ac55f80f14a7ca3ea2c766d079
part_efi: dcache: allocate cacheline aligned buffers

Currently part_efi.c allocates buffers for the gpt_header, the
legacy_mbr, and the pte (partition table entry) that may be
incorrectly aligned for DMA operations.

This patch uses ALLOC_CACHE_ALIGN_BUFFER for the stack allocated
buffers and memalign to replace the malloc of the pte.

Signed-off-by: Anton Staaf <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Albert ARIBAUD <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
disk/part_efi.c